package com.mer.statistic.controller;

import com.mer.statistic.entity.Member;
import com.mer.statistic.service.MemberService;
import com.mer.statistic.utils.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @program: iiphase-project-master
 * @description:
 * @author: 薛宁宁
 * @create: 2021-10-18 22:03
 **/
@RestController
@RequestMapping("/statistics/member")
@Api(tags = "用户类型排行榜")
@CrossOrigin
public class MemberController {
    @Resource
    private MemberService memberService;
    @ApiOperation(value = "根据count查询所有类型")
    @PostMapping("/queryByMemberType")
    public Result queryMemberType(@RequestBody Member member){
        Result commonResult = memberService.queryByMemberType(member);
        System.out.println(commonResult);
        return commonResult;
    }

}
